<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2018/6/13
 * Time: 23:51
 */
namespace app\common\mode;

use think\Model;

/**
 * 文章点赞模型
 * Class ArticleGood
 * @package app\common\mode
 */
class ArticleGood extends Model
{
    protected $table = 'wechatadmin.system_article_good';

    /**
     * 关联文章
     * @return \think\model\relation\belongsTo
     */
    public function article()
    {
        return $this->belongsTo('Article','id','aid');
    }
}